import requests
import config


class LagouUser:

    def __init__(self):
        self.url_login = config.BASE_URL + "/ssm_web/user/login"

    def login(self, phone, password):
        # 发送请求返回数据
        return requests.post(url=self.url_login,
                             params={"phone": phone,
                                     "password": password},
                             headers=config.HEADERS)

